package com.neutech.maplestory.entity;

import com.neutech.maplestory.client.MapleStoryClient;
import com.neutech.maplestory.util.ImageUtil;

import java.awt.*;

/**
 * ${陈虎}
 * 20:19
 * wp_maplestory_v1.0
 * ${"Do what you say,say what you do"}
 */

public class Flower extends AbstractMapleStoryObject {
    public Image img;
    public Flower (){}
    public static Image[] imgs = new Image[1000];
    static {
        imgs[22] = ImageUtil.getImage("flower");
        imgs[4] = ImageUtil.getImage("flower_4");
        imgs[5] = ImageUtil.getImage("flower_5");
        imgs[6] = ImageUtil.getImage("flower_6");
        imgs[7] = ImageUtil.getImage("flower_7");
        imgs[8] = ImageUtil.getImage("flower_8");
        imgs[9] = ImageUtil.getImage("flower_9");
    }
    public Flower(MapleStoryClient msc, int x, int y, String key){
        this.msc = msc;
        this.x = x;
        this.y = y;
        this.img = ImageUtil.getImage(key);
        this.width = img.getWidth(null);
        this.height = img.getHeight(null);

    }
    @Override
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);

    }
}
